/*
 * acooly.cn Inc.
 * Copyright (c) 2017 All Rights Reserved.
 * create by ouwen
 * date:2017-09-26
 *
 */
package com.yiji.fintech.musfinance.service;

import com.acooly.core.common.service.EntityService;
import com.yiji.fintech.musfinance.base.enums.NotifyStatusEnum;
import com.yiji.fintech.musfinance.base.enums.TransStatusEnum;
import com.yiji.fintech.musfinance.common.enums.ReviewStatusEnum;
import com.yiji.fintech.musfinance.entity.TransactionWithdraw;

import java.util.List;
import java.util.Set;

/**
 * center_transaction_withdraw Service接口
 *
 * Date: 2017-09-26 14:23:24
 * @author ouwen
 *
 */
public interface TransactionWithdrawService extends EntityService<TransactionWithdraw> {
    /**
     * 异步提现定时拉起数据查询
     * @param statuses
     * @param notifyStatus
     * @param pageSize
     * @param reviewStatus
     * @return
     */
    List<TransactionWithdraw> findAsynWithdrawSendToGateWay(Set<TransStatusEnum> statuses, Set<NotifyStatusEnum> notifyStatus, int pageSize, ReviewStatusEnum reviewStatus);

    /**
     * 批量状态更新
     * @param status
     * @param ids
     * @return
     */
    int batchUpdateStatus(TransStatusEnum status, List<Long> ids);

    /**
     * 单条状态更新
     * @param status
     * @param coreNo
     * @return
     */
    int updateStatus(TransStatusEnum status, String coreNo);
}
